package com.engineering.elink.domain;

import io.swagger.annotations.ApiParam;

import java.util.Date;

public class Comment {
    private Integer commentId;

    @ApiParam(value="资料主键",required=true)
    private String fileId;

    @ApiParam(value="评论的内容",required=true)
    private String content;

    private Date time;

    private Integer praiseCount;

    private Integer stampCount;

    @ApiParam(value="被评论者用户id")
    private String userId;

    @ApiParam("评论者用户id")
    private String byUserId;

    @ApiParam(value="上一级的评论id",required=true,defaultValue="0")
    private Integer parentId;
    
    @ApiParam(value="层级",required=true,defaultValue="0")
    private Integer topId;
    
    private Byte authStatus; //是否审核 0--审核中，1--通过审核 2--审核失败


    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId == null ? null : fileId.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(Integer praiseCount) {
        this.praiseCount = praiseCount;
    }

    public Integer getStampCount() {
        return stampCount;
    }

    public void setStampCount(Integer stampCount) {
        this.stampCount = stampCount;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getByUserId() {
        return byUserId;
    }

    public void setByUserId(String byUserId) {
        this.byUserId = byUserId == null ? null : byUserId.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

	public Byte getAuthStatus() {
		return authStatus;
	}

	public void setAuthStatus(Byte authStatus) {
		this.authStatus = authStatus;
	}

	public Integer getTopId() {
		return topId;
	}

	public void setTopId(Integer topId) {
		this.topId = topId;
	}
}